mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-23 03:51:20 +00:00
* test(eslint): use `.gitignore` to ignore files * test(eslint): ignore `main` directory from checking
37 lines
788 B
JSON
37 lines
788 B
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": ["main"],
|
|
"extends": ["eslint:recommended", "prettier"],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2022,
|
|
"sourceType": "module"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.mts", "**/*.ts"],
|
|
"extends": ["plugin:@typescript-eslint/recommended"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": ["tsconfig.json"]
|
|
},
|
|
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
|
|
"rules": {
|
|
"tsdoc/syntax": "error"
|
|
}
|
|
},
|
|
{
|
|
"files": ["**/*.test.*"],
|
|
"env": {
|
|
"jest": true
|
|
}
|
|
},
|
|
{
|
|
"files": ["package.json"],
|
|
"plugins": ["json-files"],
|
|
"rules": {
|
|
"json-files/sort-package-json": "error"
|
|
}
|
|
}
|
|
]
|
|
}
|