2017-04-17 16:37:37 +02:00
|
|
|
const error = 2;
|
|
|
|
const warn = 1;
|
|
|
|
const ignore = 0;
|
|
|
|
|
2017-04-14 09:26:27 +02:00
|
|
|
module.exports = {
|
2017-04-14 10:13:31 +02:00
|
|
|
extends: [
|
2017-04-17 16:37:37 +02:00
|
|
|
// './node_modules/eslint-config-airbnb-base/rules/es6.js',
|
|
|
|
'airbnb-base',
|
|
|
|
'plugin:jest/recommended',
|
2017-04-02 00:22:33 +02:00
|
|
|
],
|
2017-04-14 10:13:31 +02:00
|
|
|
plugins: [
|
|
|
|
'prettier',
|
2017-04-17 16:37:37 +02:00
|
|
|
'jest',
|
|
|
|
'react',
|
2017-04-02 00:22:33 +02:00
|
|
|
],
|
2017-04-14 10:13:31 +02:00
|
|
|
parser: 'babel-eslint',
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
2017-04-02 00:22:33 +02:00
|
|
|
},
|
2017-04-14 10:13:31 +02:00
|
|
|
env: {
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
2017-04-17 16:37:37 +02:00
|
|
|
'jest/globals': true,
|
2017-04-02 00:22:33 +02:00
|
|
|
},
|
2017-04-14 10:13:31 +02:00
|
|
|
rules: {
|
2017-04-17 16:37:37 +02:00
|
|
|
strict: [error, "never"],
|
2017-04-14 10:13:31 +02:00
|
|
|
'prettier/prettier': ['warn', {
|
|
|
|
printWidth: 100,
|
|
|
|
tabWidth: 2,
|
|
|
|
bracketSpacing: true,
|
|
|
|
trailingComma: 'all',
|
|
|
|
singleQuote: true,
|
2017-04-02 00:22:33 +02:00
|
|
|
}],
|
2017-04-14 10:13:31 +02:00
|
|
|
quotes: ['warn', 'single'],
|
2017-04-17 16:37:49 +02:00
|
|
|
'class-methods-use-this': ignore,
|
2017-04-14 10:13:31 +02:00
|
|
|
'arrow-parens': ['warn', 'as-needed'],
|
2017-04-17 16:37:37 +02:00
|
|
|
'space-before-function-paren': ignore,
|
2017-04-17 16:37:49 +02:00
|
|
|
'import/no-extraneous-dependencies': [error, { devDependencies: true, peerDependencies: true }],
|
2017-04-17 16:37:37 +02:00
|
|
|
'import/prefer-default-export': ignore,
|
|
|
|
'react/jsx-uses-react': error,
|
|
|
|
'react/jsx-uses-vars': error,
|
|
|
|
'react/react-in-jsx-scope': error,
|
2017-04-14 09:26:27 +02:00
|
|
|
},
|
2017-04-02 00:22:33 +02:00
|
|
|
}
|