-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (39 loc) · 938 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @file .eslintrc.js - Configures ESLint for the plugin repo.
*
* @author Joash Mathew <[email protected]>
* @author Bryan Hoang <[email protected]>
* @date June 2023, Aug. 2023
*/
'use strict';
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:n/recommended',
'plugin:eslint-plugin/tests',
'plugin:eslint-plugin/rules-recommended',
'@distributive',
'plugin:@distributive/recommended',
],
env: {
node: true,
},
overrides: [ {
files: ['**/*.mjs'],
parserOptions: {
sourceType: 'module',
},
},
],
rules: {
'eslint-plugin/meta-property-ordering': 'error',
'eslint-plugin/report-message-format': ['error', '^[A-Z].*\\.$'],
'eslint-plugin/require-meta-docs-description': [
'error', {
pattern: '^(Enforce|Require|Disallow)',
},
],
},
};