@@ -73,70 +73,21 @@ module.exports = {
7373
7474## Support rule set
7575
76- ### ` @cybozu `
77-
78- This rule set is a basic rules for Cybozu, which supports ES2017 and parse your sources as Modules.
79-
80- ``` js
81- module .exports = {
82- extends: " @cybozu"
83- };
84- ```
85-
86- ### ` @cybozu/eslint-config/node `
87-
88- This rule set is for projects running on a Node environment.
89-
90- ``` js
91- module .exports = {
92- extends: " @cybozu/eslint-config/presets/node"
93- };
94- ```
95-
96- ### [ Experimental] ` @cybozu/eslint-config/presets/react `
97-
98- This rule set is for projects using React, which has JSX support and rules related React provided by ` eslint-plugin-react ` and ` eslint-plugin-jsx-ally ` .
99- This rule set includes ` @cybozu ` .
100-
101- ``` js
102- module .exports = {
103- extends: " @cybozu/eslint-config/presets/react"
104- };
105- ```
106-
107- If you use React and Flow we recommend to use ` @cybozu/eslint-config/react-flowtype ` instead.
108-
109- ### [ Experimental] ` @cybozu/eslint-config/presets/flowtype `
110-
111- This rule set is for projects using Flow, which has Flow support, which is using ` eslint-plugin-flowtype ` .
112-
113- ``` js
114- module .exports = {
115- extends: " @cybozu/eslint-config/presets/flowtype"
116- };
117- ```
118-
119- If you use React and Flow we recommend to use ` @cybozu/eslint-config/react-flowtype ` instead.
120-
121- ### [ Experimental] ` @cybozu/eslint-config/presets/react-flowtype `
122-
123- This rule set is for projects using React and Flow, which has Flow support in addition to ` @cybozu/eslint-config/react ` .
124-
125- ``` js
126- module .exports = {
127- extends: " @cybozu/eslint-config/presets/react-flowtype"
128- };
129- ```
130-
131- ### ` @cybozu/eslint-config/presets/es5 `
132-
133- This rule set is for projects using ES5.
134-
135- ``` js
136- module .exports = {
137- extends: " @cybozu/eslint-config/presets/es5"
138- };
139- ```
76+ - ` @cybozu `
77+ - This is included in the all following presets
78+ - ` @cybozu/eslint-config/presets/node `
79+ - Including ` eslint-plugin-node `
80+ - ` @cybozu/eslint-config/presets/typescript `
81+ - Including ` @typescript-eslint/eslint-plugin `
82+ - ` @cybozu/eslint-config/presets/react `
83+ - Including ` eslint-plugin-react ` and ` eslint-plugin-jsx-ally `
84+ - ` @cybozu/eslint-config/presets/react-typescript `
85+ - Including ` @cybozu/eslint-config/presets/typescript ` and ` @cybozu/eslint-config/presets/react `
86+ - ` @cybozu/eslint-config/presets/flowtype `
87+ - Including ` eslint-plugin-flowtype `
88+ - ` @cybozu/eslint-config/presets/react-flowtype `
89+ - Including ` @cybozu/eslint-config/presets/react ` and ` eslint-plugin-flowtype `
90+ - ` @cybozu/eslint-config/presets/es5 `
14091
14192## Prettier Support
14293
@@ -146,7 +97,6 @@ Prettier is used widely for a code formatter for JavaScript.
14697It's an opinionated tool but with Prettier, we don't have to discuss code styles in code review.
14798(No more bikeshed)
14899
149- ` @cybozu/eslint-config ` has presets to support Prettier as an experimental.
150100The presets disable all rules conflicting with Prettier and treat the difference as errors.
151101You can fix the errors by ` --fix ` option so you don't have to fix the errors manually.
152102
@@ -158,6 +108,9 @@ In order to this, you have to install `prettier` and choose a preset from the fo
158108
159109- ` @cybozu/eslint-config/presets/prettier `
160110- ` @cybozu/eslint-config/presets/node-prettier `
111+ - ` @cybozu/eslint-config/presets/node-typescript-prettier `
112+ - ` @cybozu/eslint-config/presets/typescript-prettier `
113+ - ` @cybozu/eslint-config/presets/react-typescript-prettier `
161114- ` @cybozu/eslint-config/presets/react-prettier `
162115- ` @cybozu/eslint-config/presets/react-flowtype-prettier `
163116- ` @cybozu/eslint-config/presets/es5-prettier `
@@ -175,3 +128,4 @@ module.exports = {
175128```
176129
177130We also provide ` @cybozu/eslint-config/presets/kintone-customize-es5-prettier ` to use it with ` prettier ` .
131+
0 commit comments