From 0d399ba43d2a258b6c674c7cf279cb3a8a3adc38 Mon Sep 17 00:00:00 2001 From: "TZU-YEN, CHANG" Date: Tue, 3 Mar 2020 19:41:30 +0800 Subject: [PATCH] feat(eslint-config): setup rules below, no semi and single quotes --- packages/ESLintConfig/.eslintrc.json | 4 ++++ packages/ESLintConfig/README.md | 2 +- packages/ESLintConfig/package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/ESLintConfig/.eslintrc.json b/packages/ESLintConfig/.eslintrc.json index d58b278..089d296 100644 --- a/packages/ESLintConfig/.eslintrc.json +++ b/packages/ESLintConfig/.eslintrc.json @@ -9,5 +9,9 @@ "env": { "node": true, "jest": true + }, + "rules": { + "semi": [2, "never"], + "quotes": [2, "single"] } } diff --git a/packages/ESLintConfig/README.md b/packages/ESLintConfig/README.md index 860e03b..5f4c34e 100644 --- a/packages/ESLintConfig/README.md +++ b/packages/ESLintConfig/README.md @@ -29,7 +29,7 @@ echo '**/node_modules/** ```json { "scripts": { - "format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write && yarn lint --fix", + "format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write --no-semi --single-quote && yarn lint --fix", "lint": "eslint **/*.js" } } diff --git a/packages/ESLintConfig/package.json b/packages/ESLintConfig/package.json index 0948dfd..2469bef 100644 --- a/packages/ESLintConfig/package.json +++ b/packages/ESLintConfig/package.json @@ -16,7 +16,7 @@ "url": "git+https://github.com/AllJointTW/AllJointNext.git" }, "scripts": { - "format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write", + "format": "prettier **/*.{js,json,ts,md,yaml} !**/dist/** !./dist/** --write --no-semi --single-quote", "lint": ":" }, "dependencies": {