@defisaver/eslint-config
v1.0.1
Published
Global eslint configs for DeFi Saver projects.
Downloads
1,147
Readme
DeFi Saver eslint-config
Global eslint configs for DeFi Saver projects. Includes base & react config, as well as typescript variants.
Example .eslintrc
module.exports = {
extends: ["@defisaver/eslint-config/react-config"], // import js config
parser: '@babel/eslint-parser',
env: {
es6: true,
browser: true,
},
overrides: [{
files: ['*.ts', '*.tsx'],
extends: ["@defisaver/eslint-config/react-config-typescript"], // import ts config
parser: '@typescript-eslint/parser',
parserOptions: { project: ['./tsconfig.json'] },
}],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
babelOptions: {
presets: [
...
],
},
},
globals: {
...
},
settings: {
...
}
};