mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-23 03:51:20 +00:00
* build(typescript): disable from generating source map * build(typescript): disable from generating declaration file * build(typescript): modify source files to be compiled to the same dir * build(typescript): modify distribution files to be generated to `dist` directory * refactor: rename main entrypoint from `main` to `index` * chore(git): specify attribute for `dist` directory instead of just `dist/index.mjs`
37 lines
788 B
JSON
37 lines
788 B
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": ["dist"],
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|