generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patheslint.config.js
30 lines (28 loc) · 929 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import parser from "@typescript-eslint/parser"
import tsEslint from "@typescript-eslint/eslint-plugin"
import simpleImportSort from "eslint-plugin-simple-import-sort"
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
// TODO: add eslint-plugin-import after v9 support
export default [
eslintPluginPrettierRecommended,
{
ignores: ["dist/", "bin/", "node_modules/"],
languageOptions: {
globals: { node: true },
parser,
},
files: ['src/**/*.ts'],
plugins: {
"@typescript-eslint": tsEslint,
"simple-import-sort": simpleImportSort,
},
rules: {
// "import/first": "error",
// "import/newline-after-import": "error",
// "import/no-duplicates": "error",
"simple-import-sort/imports": "error",
"sort-imports": "off",
"max-len": ["error", { "code": 120, "ignoreComments": true, "ignoreStrings": true}]
}
}
]