2020-02-14 12:45:20 +04:00
|
|
|
import rComments from "./rules/eslint-comments/default.json";
|
|
|
|
import rDefault from "./rules/javascript/default.json";
|
|
|
|
import rImport from "./rules/import/default.json";
|
|
|
|
import rSecurity from "./rules/security/default.json";
|
|
|
|
import rSonarJS from "./rules/sonarjs/default.json";
|
|
|
|
import rUnicorn from "./rules/unicorn/default.json";
|
2020-02-13 14:30:54 +04:00
|
|
|
|
|
|
|
module.exports = {
|
2020-02-13 22:22:55 +04:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2020-02-14 12:39:05 +04:00
|
|
|
"plugin:eslint-comments/recommended",
|
2020-02-13 22:22:55 +04:00
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/recommended",
|
|
|
|
"plugin:import/warnings",
|
2020-02-14 12:17:13 +04:00
|
|
|
"plugin:security/recommended",
|
2020-02-14 12:25:05 +04:00
|
|
|
"plugin:sonarjs/recommended",
|
2020-02-14 12:31:12 +04:00
|
|
|
"plugin:unicorn/recommended",
|
2020-02-14 12:17:13 +04:00
|
|
|
],
|
|
|
|
"plugins": [
|
2020-02-14 12:39:05 +04:00
|
|
|
"eslint-comments",
|
2020-02-14 12:17:13 +04:00
|
|
|
"import",
|
|
|
|
"security",
|
2020-02-14 12:25:05 +04:00
|
|
|
"sonarjs",
|
2020-02-14 12:31:12 +04:00
|
|
|
"unicorn",
|
2020-02-13 22:22:55 +04:00
|
|
|
],
|
2020-02-13 18:39:46 +04:00
|
|
|
"rules": {
|
2020-02-14 12:39:05 +04:00
|
|
|
...rComments,
|
2020-02-13 18:39:46 +04:00
|
|
|
...rDefault,
|
|
|
|
...rImport,
|
2020-02-14 12:17:13 +04:00
|
|
|
...rSecurity,
|
2020-02-14 12:25:05 +04:00
|
|
|
...rSonarJS,
|
2020-02-14 12:31:12 +04:00
|
|
|
...rUnicorn,
|
2020-02-13 18:39:46 +04:00
|
|
|
},
|
2020-02-13 14:30:54 +04:00
|
|
|
};
|