mm_eslint 1.4.2 → 1.4.4

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.
@@ -0,0 +1,22 @@
1
+ const mmEslint = require('./index.js');
2
+
3
+ module.exports = [
4
+ {
5
+ files: ['**/*.js'],
6
+ languageOptions: {
7
+ ecmaVersion: 2022, // 支持类字段等ES2022特性
8
+ sourceType: 'module'
9
+ },
10
+ plugins: {
11
+ 'mm_eslint': mmEslint
12
+ },
13
+ rules: {
14
+ 'mm_eslint/class-name': 'error', // 类名命名规则
15
+ 'mm_eslint/class-instance-name': 'error', // 类实例名命名规则
16
+ 'mm_eslint/function-name': 'error', // 函数(方法)名命名规则
17
+ 'mm_eslint/param-name': 'error', // 参数名命名规则
18
+ 'mm_eslint/variable-name': 'error', // 变量名命名规则
19
+ 'mm_eslint/constant-name': 'error' // 常量名命名规则
20
+ }
21
+ }
22
+ ];