forked from 18F/analytics.usa.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
38 lines (37 loc) · 1010 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
35
36
37
38
const { configs: eslintConfigs } = require("@eslint/js");
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
const globals = require("globals");
const reactRecommended = require("eslint-plugin-react/configs/recommended");
module.exports = [
{
languageOptions: {
globals: {
ga: false,
...globals.browser,
...globals.node,
...globals.mocha,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
},
{
// Include recommended linting rules from eslint, react, and prettier
//
// When linting ignore the locally compiled minified JS, other assets, and
// touchpoints JS which is third party code copied into this repo.
ignores: [
"_site/**/*.js",
"assets/**/*",
"sass/**/*",
"ga4-data/**/*",
"js/lib/touchpoints.js",
],
...eslintConfigs.recommended,
...reactRecommended,
...eslintPluginPrettierRecommended,
},
];