mirror of
https://github.com/fluencelabs/dashboard
synced 2025-03-28 02:41:04 +00:00
format .eslintrc.js
This commit is contained in:
parent
b0fc1c5715
commit
344ae0c981
49
.eslintrc.js
49
.eslintrc.js
@ -1,24 +1,29 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 12,
|
ecmaVersion: 12,
|
||||||
sourceType: "module", // Allows for the use of imports
|
sourceType: 'module', // Allows for the use of imports
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
es2021: true,
|
es2021: true,
|
||||||
},
|
},
|
||||||
extends: [
|
extends: [
|
||||||
'airbnb-base',
|
'airbnb-base',
|
||||||
'plugin:@typescript-eslint/eslint-recommended',
|
'plugin:@typescript-eslint/eslint-recommended',
|
||||||
'plugin:@typescript-eslint/recommended',
|
'plugin:@typescript-eslint/recommended',
|
||||||
// Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
|
// Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
|
||||||
"plugin:prettier/recommended"
|
'plugin:prettier/recommended',
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: ['@typescript-eslint', 'prettier'],
|
||||||
'@typescript-eslint',
|
rules: {},
|
||||||
'prettier'
|
settings: {
|
||||||
],
|
// 'import/resolver': {
|
||||||
rules: {
|
// browser: {
|
||||||
},
|
// extensions: ['.js', '.js', '.ts', '.ts', '.css', '.elm'],
|
||||||
|
// paths: ['src'],
|
||||||
|
// },
|
||||||
|
// },
|
||||||
|
'import/extensions': ['.js', '.ts'],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user