You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
594 B
25 lines
594 B
// eslint.config.js |
|
const { defineConfig } = require("eslint/config"); |
|
const tsPlugin = require("@typescript-eslint/eslint-plugin"); |
|
const tsParser = require("@typescript-eslint/parser"); |
|
const prettierConfig = require("eslint-config-prettier"); |
|
|
|
module.exports = defineConfig([ |
|
{ |
|
files: ["**/*.{js,jsx,ts,tsx}"], |
|
languageOptions: { |
|
parser: tsParser, |
|
parserOptions: { |
|
sourceType: "module", |
|
}, |
|
}, |
|
plugins: { |
|
"@typescript-eslint": tsPlugin, |
|
}, |
|
rules: { |
|
semi: "error", |
|
"prefer-const": "error", |
|
}, |
|
}, |
|
prettierConfig, |
|
]); |