diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index d4f72aa9..00000000 --- a/.eslintignore +++ /dev/null @@ -1,9 +0,0 @@ -# from .gitignore -node_modules/ -.eslintcache -.nyc_output -coverage -# Local Netlify folder -.netlify - -src/node-compat/assets/ \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 8d9b6a50..4af5a387 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -35,6 +35,16 @@ "node/no-unpublished-require": 0, "node/no-missing-require": 0 } + }, + { + "files": ["src/node-compat/assets/*.js"], + "parserOptions": { + "sourceType": "module" + }, + "rules": { + "node/no-unsupported-features/es-syntax": 0, + "no-undef": 0 + } } ] } diff --git a/package.json b/package.json index 6437c7c0..756f8ea3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "npm run format && npm run test:dev", "format": "run-s format:*", - "format:lint": "eslint --ignore-path .eslintignore --fix --cache --format=codeframe --max-warnings=0 \"src/**/*.js\"", + "format:lint": "eslint --ignore-path .gitignore --fix --cache --format=codeframe --max-warnings=0 \"src/**/*.js\"", "format:prettier": "prettier --ignore-path .gitignore --write --loglevel warn \"*.{js,md,yml,json}\" \"!**/package-lock.json\" \"!package-lock.json\"", "test:dev": "ava", "test:ci": "nyc -r lcovonly -r text -r json ava"