forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 816 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
'extends': [
'wpcalypso/react',
'plugin:jest/recommended',
],
parser: 'babel-eslint',
env: {
browser: true,
'jest/globals': true,
mocha: true,
node: true
},
globals: {
asyncRequire: true,
PROJECT_NAME: true
},
plugins: [
'jest'
],
rules: {
camelcase: 0, // REST API objects include underscores
'jest/valid-expect': 0,
'max-len': [ 2, { code: 140 } ],
'no-restricted-imports': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ],
'no-restricted-modules': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ],
'no-unused-expressions': 0, // Allows Chai `expect` expressions
'wpcalypso/jsx-classname-namespace': [ 2, {
rootFiles: [ 'index.js', 'index.jsx', 'main.js', 'main.jsx' ],
} ],
'wpcalypso/import-no-redux-combine-reducers': 2
}
};