forked from UniversalViewer/universalviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.cjs
More file actions
35 lines (34 loc) Β· 803 Bytes
/
eslint.config.cjs
File metadata and controls
35 lines (34 loc) Β· 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// eslint.config.js
const { defineConfig } = require("eslint/config");
const tsPlugin = require("@typescript-eslint/eslint-plugin");
const tsParser = require("@typescript-eslint/parser");
const reactPlugin = require("eslint-plugin-react");
const prettierConfig = require("eslint-config-prettier");
module.exports = defineConfig([
{
files: ["**/*.{js,jsx,ts,tsx}"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": tsPlugin,
react: reactPlugin,
},
rules: {
semi: "error",
"prefer-const": "error",
},
settings: {
react: {
version: "detect",
},
},
},
prettierConfig,
]);