Created
March 22, 2018 10:17
-
-
Save chul-hyun/c7bdd1ab485a79e06cebd512b5d55118 to your computer and use it in GitHub Desktop.
eslintrc
This file contains 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 = { | |
'extends': 'airbnb', | |
// "parser": "typescript-eslint-parser", | |
// "parserOptions": { | |
// "ecmaVersion": 6, | |
// "sourceType": "module", | |
// "ecmaFeatures": { | |
// "modules": true, | |
// "jsx": true | |
// } | |
// }, | |
'plugins': [ | |
'import' | |
], | |
'env': { | |
'browser': true | |
}, | |
'rules':{ | |
'indent':[ | |
'error', | |
2 | |
], | |
'import/no-extraneous-dependencies': [ | |
'error', | |
{ | |
'devDependencies': true | |
} | |
], | |
'semi': ['error', 'never'], | |
'max-statements': ['warn', 20, { 'ignoreTopLevelFunctions': true }], | |
'complexity': ['warn', 10], | |
'no-param-reassign': 'warn', | |
'no-use-before-define': 'off', | |
'max-len': ['warn', 80, 0, { | |
'ignoreUrls': true, | |
'ignoreComments': false, | |
'ignoreRegExpLiterals': true, | |
'ignoreStrings': true, | |
'ignoreTemplateLiterals': true, | |
}], | |
'no-multiple-empty-lines': ['error', { | |
'max': 2, | |
'maxBOF': 0, | |
'maxEOF': 0 | |
}], | |
'no-return-await': 'off', | |
'func-style': ["error", "expression"], | |
"react/prefer-es6-class": ['error', 'always'], | |
'no-underscore-dangle': 'off', | |
'react/prefer-stateless-function': ['error', { "ignorePureComponents": true }], | |
'react/prop-types': ['error', { 'skipUndeclared': true }], | |
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".jsx"] }] | |
} | |
}; |
This file contains 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
{ | |
"name": "js", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "node index.js" | |
}, | |
"devDependencies": { | |
"eslint": "^4.18.2", | |
"eslint-config-airbnb": "^16.1.0", | |
"eslint-plugin-import": "^2.9.0", | |
"eslint-plugin-jsx-a11y": "^6.0.3", | |
"eslint-plugin-react": "^7.7.0" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment