@aiou/eslint-config 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,9 +38,15 @@ module.exports = aiou()
38
38
 
39
39
  #### `options.ssr`
40
40
 
41
- - default: `false`
41
+ - default: `true`
42
42
 
43
43
  enabled ssr-friendly rules
44
+
45
+ #### `options.regexp`
46
+
47
+ - default: `true`
48
+
49
+ enabled regexp rules
44
50
 
45
51
  ## rules
46
52
 
@@ -51,7 +57,7 @@ eslint-config-standard
51
57
  eslint-plugin-eslint-comments
52
58
  eslint-plugin-html
53
59
  eslint-plugin-i
54
- eslint-plugin-regexp
60
+ eslint-plugin-regexp (configured when regexp enabled)
55
61
  eslint-plugin-markdown
56
62
  eslint-plugin-simple-import-sort
57
63
  eslint-plugin-import-newlines
package/dist/index.cjs CHANGED
@@ -4008,7 +4008,7 @@ const react = () => {
4008
4008
  {
4009
4009
  files: [
4010
4010
  `**/*config*.${GLOB_SCRIPT_EXT}`,
4011
- `**/*{-entry,.entry}*.${GLOB_SCRIPT_EXT}`,
4011
+ `**/*{-entry,entry.}*.${GLOB_SCRIPT_EXT}`,
4012
4012
  GLOB_TEST_SCRIPT,
4013
4013
  GLOB_TEST_DIRS
4014
4014
  ],
@@ -4045,6 +4045,8 @@ const ssrReact = () => {
4045
4045
  {
4046
4046
  files: [
4047
4047
  `**/*config*.${GLOB_SCRIPT_EXT}`,
4048
+ // Client entry files not need to be SSR friendly
4049
+ `**/*{client-entry,entry.client}*.${GLOB_SCRIPT_EXT}`,
4048
4050
  GLOB_TEST_SCRIPT,
4049
4051
  GLOB_TEST_DIRS
4050
4052
  ],
package/dist/index.mjs CHANGED
@@ -4006,7 +4006,7 @@ const react = () => {
4006
4006
  {
4007
4007
  files: [
4008
4008
  `**/*config*.${GLOB_SCRIPT_EXT}`,
4009
- `**/*{-entry,.entry}*.${GLOB_SCRIPT_EXT}`,
4009
+ `**/*{-entry,entry.}*.${GLOB_SCRIPT_EXT}`,
4010
4010
  GLOB_TEST_SCRIPT,
4011
4011
  GLOB_TEST_DIRS
4012
4012
  ],
@@ -4043,6 +4043,8 @@ const ssrReact = () => {
4043
4043
  {
4044
4044
  files: [
4045
4045
  `**/*config*.${GLOB_SCRIPT_EXT}`,
4046
+ // Client entry files not need to be SSR friendly
4047
+ `**/*{client-entry,entry.client}*.${GLOB_SCRIPT_EXT}`,
4046
4048
  GLOB_TEST_SCRIPT,
4047
4049
  GLOB_TEST_DIRS
4048
4050
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiou/eslint-config",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "eslint config for aiou template",
5
5
  "keywords": [],
6
6
  "license": "MIT",