mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 19:21:18 -04:00
lint literally ALL the things 🚓
This commit is contained in:
40
.eslintrc.cjs
Normal file
40
.eslintrc.cjs
Normal file
@@ -0,0 +1,40 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: [
|
||||
"@jakejarvis/eslint-config",
|
||||
"plugin:no-unsanitized/DOM",
|
||||
"plugin:lit/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
],
|
||||
plugins: ["prettier"],
|
||||
parser: "@babel/eslint-parser",
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: "module",
|
||||
allowImportExportEverywhere: false,
|
||||
requireConfigFile: false,
|
||||
babelOptions: {
|
||||
presets: ["@babel/preset-env"],
|
||||
},
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
},
|
||||
rules: {
|
||||
"compat/compat": "error",
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
// Serverless functions & root config files
|
||||
files: ["api/**/*.js", "{.eslintrc,gulpfile,webpack.config}.{js,cjs}"],
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
rules: {
|
||||
"compat/compat": "off",
|
||||
},
|
||||
},
|
||||
],
|
||||
ignorePatterns: ["public/**", "static/assets/**"],
|
||||
};
|
Reference in New Issue
Block a user