mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-23 04:00:55 -05:00
6c471ae9f6
* Add eslint-plugin-simple-import-sort * Update .eslintrc.json * eslint --fix
23 lines
716 B
JSON
23 lines
716 B
JSON
{
|
|
"env": { "node": true, "jest": true },
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": { "ecmaVersion": 2020, "sourceType": "module" },
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:import/typescript",
|
|
"plugin:prettier/recommended",
|
|
"prettier/@typescript-eslint"
|
|
],
|
|
"plugins": ["@typescript-eslint", "simple-import-sort", "jest"],
|
|
"rules": {
|
|
"import/first": "error",
|
|
"import/newline-after-import": "error",
|
|
"import/no-duplicates": "error",
|
|
"simple-import-sort/sort": "error",
|
|
"sort-imports": "off"
|
|
}
|
|
}
|