mirror of
https://github.com/strapi/strapi.git
synced 2026-01-05 11:45:51 +00:00
76 lines
1.4 KiB
JSON
76 lines
1.4 KiB
JSON
{
|
|
"parser": "babel-eslint",
|
|
"extends": [
|
|
"airbnb",
|
|
"prettier",
|
|
"eslint:recommended"
|
|
],
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"mocha": true,
|
|
"es6": true
|
|
},
|
|
"plugins": [
|
|
"redux-saga",
|
|
"react",
|
|
"jsx-a11y"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 7,
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"impliedStrict": true,
|
|
"jsx": true
|
|
}
|
|
},
|
|
"rules": {
|
|
"comma-dangle": [
|
|
0,
|
|
"always-multiline"
|
|
],
|
|
"import/newline-after-import": 0,
|
|
"import/no-dynamic-require": 0,
|
|
"import/no-extraneous-dependencies": 0,
|
|
"import/no-named-as-default": 0,
|
|
"import/no-unresolved": 2,
|
|
"import/prefer-default-export": 0,
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"groups": [
|
|
"builtin",
|
|
"external",
|
|
"internal",
|
|
"parent",
|
|
"sibling",
|
|
"index"
|
|
]
|
|
}
|
|
],
|
|
"import/imports-first": 2,
|
|
"indent": [
|
|
2,
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"max-len": 0,
|
|
"newline-per-chained-call": 0,
|
|
"no-console": 1,
|
|
"no-use-before-define": 0,
|
|
"prefer-template": 2,
|
|
"class-methods-use-this": 0,
|
|
"no-undef": 0,
|
|
"semi": 2
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"webpack": {
|
|
"config": "../../node_modules/strapi-lint/lib/internals/webpack/webpack.test.babel.js"
|
|
}
|
|
}
|
|
}
|
|
}
|