mirror of
https://github.com/qwertyforce/scenery.git
synced 2025-05-01 13:10:14 +00:00
32 lines
888 B
JavaScript
32 lines
888 B
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es2020": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
// suppress errors for missing 'import React' in files
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
// allow jsx syntax in js files (for next.js project)
|
|
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx",".ts", ".tsx"] }], //should add ".ts" if typescript project
|
|
}
|
|
};
|