-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.yml
57 lines (57 loc) · 1.57 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
'extends':
- 'semistandard'
- 'plugin:prettier/recommended'
- 'plugin:import/errors'
- 'plugin:monorepo/recommended'
- 'prettier/react'
- 'plugin:react/recommended'
- 'plugin:jsx-a11y/recommended'
overrides:
- files:
- '.mocharc.js'
- 'lint-staged.config.js'
parserOptions:
sourceType: 'script'
- env:
mocha: true
files:
- '**/test/**/*.spec.js'
globals:
expect: false
proxyquire: false
sinon: false
rules:
no-restricted-syntax:
- 'error'
- selector: "Program > ExpressionStatement > CallExpression[callee.name=describe] > Literal:not([raw=/^'@report-toolkit\\u002F\\S+?(:\\S+)*'/])"
message: 'Top-level describe() must be of format "@report-toolkit/<package>" or "@report-toolkit/<package>:<module>[:module...]"'
monorepo/no-internal-import: 0
- files:
- 'packages/docs/**/*'
rules:
import/extensions: 0
parser: 'babel-eslint'
plugins:
- 'react-hooks'
root: true
rules:
import/exports-last: 'error'
import/extensions:
- 'error'
- 'always'
- 'ignorePackages': true
import/order: 0
no-restricted-syntax:
- 'error'
- selector: 'CallExpression[callee.name=Symbol] > Literal:not([value=/^report-toolkit-[a-z-]+$/])'
message: 'Symbol() must be called with a kebab-case description beginning with "report-toolkit-"'
react/prop-types: 0
react/destructuring-assignment: 0
react/no-access-state-in-setstate: 0
standard/computed-property-even-spacing: 0
strict:
- 'error'
- 'safe'
settings:
react:
version: 'latest'