Skip to content

Commit cc175e7

Browse files
committed
gts 7
1 parent 8a49f38 commit cc175e7

File tree

7 files changed

+939
-942
lines changed

7 files changed

+939
-942
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = {
2-
...require('gts/.prettierrc.json')
3-
}
2+
"bracketSpacing": false,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"arrowParens": "avoid",
6+
};

eslint.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import {createRequire} from 'node:module';
2+
import {fileURLToPath} from 'node:url';
3+
import {dirname, join} from 'node:path';
4+
5+
const require = createRequire(import.meta.url);
6+
const __dirname = dirname(fileURLToPath(import.meta.url));
7+
const gtsConfig = require('gts/build/eslint.config.js');
8+
9+
export default [
10+
...gtsConfig,
11+
{
12+
ignores: ['build/', 'test/', 'docs/', 'dist/', '.rollup.cache/'],
13+
},
14+
{
15+
files: ['eslint.config.js'],
16+
languageOptions: {
17+
sourceType: 'module',
18+
},
19+
},
20+
{
21+
files: ['**/*.ts', '**/*.tsx'],
22+
languageOptions: {
23+
parserOptions: {
24+
project: join(__dirname, 'tsconfig.json'),
25+
},
26+
},
27+
rules: {
28+
'@typescript-eslint/no-explicit-any': 'warn',
29+
},
30+
},
31+
];

0 commit comments

Comments
 (0)