forked from CKGrafico/papanasi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 1.46 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const DISABLED = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
parser: '@typescript-eslint/parser',
// Specifies the ESLint parser
plugins: ['@builder.io/mitosis'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:storybook/recommended'],
parserOptions: {
ecmaVersion: 2018,
// Allows for the parsing of modern ECMAScript features
sourceType: 'module',
// Allows for the use of imports
ecmaFeatures: {
jsx: true
}
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// "@typescript-eslint/explicit-function-return-type": ["error", { allowExpressions: true }],
'@typescript-eslint/camelcase': DISABLED,
'@typescript-eslint/ban-ts-comment': DISABLED,
'@typescript-eslint/interface-name-prefix': DISABLED,
'@typescript-eslint/no-empty-interface': DISABLED,
'@typescript-eslint/no-var-requires': DISABLED,
'react/prop-types': DISABLED,
'react/prop': DISABLED,
'@builder.io/mitosis/no-unused-expressions': DISABLED,
'@builder.io/mitosis/no-var-name-same-as-state-property': ERROR,
'@builder.io/mitosis/jsx-callback-arg-name': ERROR,
'@builder.io/mitosis/jsx-callback-arrow-function': ERROR,
'@builder.io/mitosis/no-assign-props-to-state': ERROR,
'@builder.io/mitosis/no-conditional-logic-in-component-render': ERROR,
'@builder.io/mitosis/no-state-destructuring': ERROR
}
};