optimize whole environment
This commit is contained in:
@ -1,4 +1,17 @@
|
||||
import presetsPrettier from "@cybozu/eslint-config/flat/presets/react-typescript-prettier.js";
|
||||
import presetsPrettier from '@cybozu/eslint-config/flat/presets/react-typescript-prettier.js';
|
||||
import globals from 'globals';
|
||||
|
||||
/** @type {import("eslint").Linter.Config[]} */
|
||||
export default [...presetsPrettier];
|
||||
export default [
|
||||
...presetsPrettier,
|
||||
{
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'spaced-comment': ['error', 'always', { markers: ['/'] }],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user