From b38857825229d4fefb82744b7c8311d8d6584363 Mon Sep 17 00:00:00 2001 From: Yeongsu Han Date: Sat, 22 Aug 2020 00:08:36 +0900 Subject: [PATCH] change eslintrc (#5) --- .eslintrc.js | 50 +++++++++++++++++--------------------------------- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 81ba858..9db609a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,40 +1,24 @@ // eslint-disable-next-line no-undef module.exports = { - 'env': { - 'browser': true, - 'es2020': true + env: { + browser: true, + es2020: true, }, - 'extends': [ - 'eslint:recommended', - 'plugin:react/recommended' - ], - 'parserOptions': { - 'ecmaFeatures': { - 'jsx': true + extends: ['eslint:recommended', 'plugin:react/recommended'], + parserOptions: { + ecmaFeatures: { + jsx: true, }, - 'ecmaVersion': 11, - 'sourceType': 'module', + ecmaVersion: 11, + sourceType: 'module', }, - 'plugins': [ - 'react' - ], - 'rules': { + plugins: ['react'], + ignorePatterns: ['ExampleProject/'], + rules: { 'react/prop-types': 0, - 'indent': [ - 'error', - 'tab' - ], - 'linebreak-style': [ - 'error', - 'unix' - ], - 'quotes': [ - 'error', - 'single' - ], - 'semi': [ - 'error', - 'always' - ] - } + indent: ['error', 'tab'], + 'linebreak-style': ['error', 'unix'], + quotes: ['error', 'single'], + semi: ['error', 'always'], + }, };