Minhas configurações basicas de lint para utilizar no react native (javascript)
Last active
February 22, 2021 12:53
-
-
Save mtwzim/fc261f0b3b42fe3bd3e0c374518d6c18 to your computer and use it in GitHub Desktop.
Minhas configurações basicas de lint para utilizar no react native (javascript)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root=true | |
[*] | |
end_of_line=auto | |
indent_style=space | |
indent_size=2 | |
charset=utf-8 | |
trim_trailing_whitespace=true | |
insert_final_newline=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
env: { | |
es6: true, | |
}, | |
extends: ['airbnb', 'prettier', 'prettier/react'], | |
globals: { | |
Atomics: 'readonly', | |
SharedArrayBuffer: 'readonly', | |
__DEV__: 'readonly', | |
}, | |
parser: 'babel-eslint', | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
}, | |
plugins: ['react', 'prettier'], | |
rules: { | |
'prettier/prettier': 'warn', | |
'react/jsx-filename-extension': [ | |
'warn', | |
{ | |
extensions: ['.jsx', '.js'], | |
}, | |
], | |
'import/prefer-default-export': 'off', | |
'no-unused-vars': 'warn', | |
'react/prefer-stateless-function': 'off', | |
}, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"singleQuote": true, | |
"trailingComma": "es5" | |
"endOfLine": "auto" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment