-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
34 lines (33 loc) · 905 Bytes
/
eslint.config.js
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
import js from "@eslint/js";
import globals from "globals";
import babelParser from "@babel/eslint-parser";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
export default [
{
...js.configs.recommended,
files: ["src/**/*.js"],
ignores: ["gulp/*.js", "src/js/entry.js", "src/js/inline/*.js", "src/js/vendor/*.js"],
languageOptions: {
globals: globals.browser,
ecmaVersion: 2021,
sourceType: "module",
parser: babelParser,
parserOptions: {
requireConfigFile: false,
babelOptions: {
babelrc: false,
configFile: false,
presets: ["@babel/preset-env"],
},
},
},
plugins: {},
rules: {
"no-undef": "warn",
"no-unused-vars": "warn",
"prettier/prettier": "error",
"react/prop-types": 0,
},
},
eslintPluginPrettierRecommended,
];