You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create `.eslintrc.*` file to configure rules. See also: [http://eslint.org/docs/user-guide/configuring](http://eslint.org/docs/user-guide/configuring).
48
+
Add `regexp` to the plugins section of your `.eslintrc` configuration file (you can omit the `eslint-plugin-` prefix)
49
+
and either use the recommended configuration or configure the rules you want:
49
50
50
-
Example **.eslintrc.js**:
51
+
### The recommended configuration
52
+
53
+
The `regexp/recommended` config enables a subset of [the core rules](#white_check_mark-rules) that should be most useful to most users.
54
+
*See https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/recommended.ts for more details.*
51
55
52
56
```js
57
+
// .eslintrc.js
53
58
module.exports= {
54
-
extends: [
55
-
// add more generic rulesets here, such as:
56
-
// 'eslint:recommended',
57
-
'plugin:regexp/recommended'
58
-
],
59
-
rules: {
60
-
// override/add rules settings here, such as:
61
-
// 'regexp/rule-name': 'error'
62
-
}
59
+
"plugins": [
60
+
"regexp"
61
+
],
62
+
"extends": [
63
+
// add more generic rulesets here, such as:
64
+
// 'eslint:recommended',
65
+
"plugin:regexp/recommended"
66
+
]
63
67
}
64
68
```
65
69
66
-
### Configuration
70
+
### Advanced Configuration
67
71
68
-
This plugin provides one config:
72
+
Override/add specific rules configurations. *See also: [http://eslint.org/docs/user-guide/configuring](http://eslint.org/docs/user-guide/configuring)*.
69
73
70
-
-`plugin:regexp/recommended` ... This is the recommended configuration for this plugin.
71
-
See [lib/configs/recommended.ts](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/lib/configs/recommended.ts) for details.
0 commit comments