mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-09 06:48:12 +08:00
airbnb lint
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parser: 'babel-eslint',
|
parser: 'babel-eslint',
|
||||||
extends: 'formidable/configurations/es6-react',
|
extends: 'airbnb',
|
||||||
env: { browser: true, commonjs: true, es6: true, node: true, mocha: true },
|
env: { browser: true, commonjs: true, es6: true },
|
||||||
globals: { expect: true },
|
globals: { expect: true },
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 6,
|
ecmaVersion: 6,
|
||||||
@@ -10,20 +10,13 @@ module.exports = {
|
|||||||
ecmaFeatures: {
|
ecmaFeatures: {
|
||||||
jsx: true,
|
jsx: true,
|
||||||
generators: true,
|
generators: true,
|
||||||
experimentalObjectRestSpread: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
quotes: [ 2, 'single', { allowTemplateLiterals: true } ],
|
|
||||||
'no-magic-numbers': 'off',
|
'no-magic-numbers': 'off',
|
||||||
'func-style': 'off',
|
'func-style': 'off',
|
||||||
'arrow-parens': 'off',
|
'arrow-parens': 'off',
|
||||||
'no-use-before-define': 'off',
|
'no-use-before-define': 'off',
|
||||||
'react/jsx-filename-extension': 'off',
|
'react/jsx-filename-extension': 'off',
|
||||||
'react/require-extension': 'off',
|
|
||||||
'react/no-multi-comp': 'warn',
|
|
||||||
'react/prop-types': 'warn',
|
|
||||||
'react/sort-comp': 'warn',
|
|
||||||
'react/sort-prop-types': 'warn'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user