|
| 1 | +const path = require('path') |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + "extends": [ |
| 5 | + "standard", |
| 6 | + "plugin:flowtype/recommended", |
| 7 | + "plugin:react/recommended" |
| 8 | + ], |
| 9 | + "parser": "babel-eslint", |
| 10 | + "settings": { |
| 11 | + "flowtype": { |
| 12 | + "onlyFilesWithFlowAnnotation": true |
| 13 | + } |
| 14 | + }, |
| 15 | + "plugins": [ |
| 16 | + "standard", |
| 17 | + "flowtype", |
| 18 | + "promise", |
| 19 | + "import", |
| 20 | + "react", |
| 21 | + "jsx-a11y" |
| 22 | + ], |
| 23 | + "env": { |
| 24 | + "mocha": true, |
| 25 | + "node": true, |
| 26 | + "browser": true, |
| 27 | + "es6": true, |
| 28 | + "jquery": true |
| 29 | + }, |
| 30 | + "globals": { |
| 31 | + "expect": false, |
| 32 | + "jest": false |
| 33 | + }, |
| 34 | + "rules": { |
| 35 | + "import/extensions": 0, |
| 36 | + "no-useless-escape": 0, |
| 37 | + "no-useless-return": 0, |
| 38 | + "camelcase": 0, |
| 39 | + "prefer-const": 1, |
| 40 | + "react/prop-types": [2, { ignore: ['className'] }], |
| 41 | + "no-multi-spaces": [2, { "ignoreEOLComments": true }], |
| 42 | + "import/no-webpack-loader-syntax": 0, |
| 43 | + "no-use-before-define": [0], |
| 44 | + "no-duplicate-imports": 0, |
| 45 | + "react/no-deprecated": 0, |
| 46 | + "semi": ["error", "never"], |
| 47 | + "quotes": ["error", "single"], |
| 48 | + "comma-dangle": "off", |
| 49 | + "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], |
| 50 | + "jsx-a11y/no-static-element-interactions": "off", |
| 51 | + "jsx-a11y/img-has-alt": [0], |
| 52 | + "jsx-a11y/href-no-hash": "off", |
| 53 | + "jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }], |
| 54 | + "import/no-extraneous-dependencies": ["error", { |
| 55 | + "devDependencies": true, |
| 56 | + "optionalDependencies": false, |
| 57 | + "peerDependencies": false, |
| 58 | + "packageDir": path.join(__dirname) |
| 59 | + }] |
| 60 | + } |
| 61 | +}; |
0 commit comments