Skip to content

Commit

Permalink
Add stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
irdkwmnsb committed Oct 29, 2023
1 parent 03bb699 commit e4275e3
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions src/frontend/overlay/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
module.exports = {
"ignorePatterns": [
"build/**"
],
// parser: '@typescript-eslint/parser',
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"eol-last": [
"error",
"always"
],
"no-case-declarations": "off",
"object-curly-spacing": [
"error",
"always"
],
"no-unused-vars": [
"warn"
],
"react/prop-types": [
"off"
],
// suppress errors for missing 'import React' in files
"react/react-in-jsx-scope": "off",
// allow jsx syntax in js files (for next.js project)
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }], //should add ".ts" if typescript project
},
root: true
};

0 comments on commit e4275e3

Please sign in to comment.