Skip to content

Instantly share code, notes, and snippets.

@chul-hyun
Created March 22, 2018 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chul-hyun/c7bdd1ab485a79e06cebd512b5d55118 to your computer and use it in GitHub Desktop.
Save chul-hyun/c7bdd1ab485a79e06cebd512b5d55118 to your computer and use it in GitHub Desktop.
eslintrc
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"] }]
}
};
{
"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