-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (32 loc) · 925 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
/**
* External dependencies
*/
// const { escapeRegExp, map } = require( 'lodash' );
/**
* Internal dependencies
*/
// const { version } = require( './package' );
/**
* Regular expression string matching a SemVer string with equal major/minor to
* the current package version. Used in identifying deprecations.
*
* @type {string}
*/
// const majorMinorRegExp = escapeRegExp( version.replace( /\.\d+$/, '' ) ) + '(\\.\\d+)?';
module.exports = {
// parser: 'babel-eslint', // Specifies the ESLint parser
extends: [
'plugin:@wordpress/eslint-plugin/recommended',
// 'wpcalypso/react',
'plugin:jest/recommended',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
root: true,
rules: {
// '@wordpress/react-no-unsafe-timeout': 'error',
// 'wpcalypso/import-docblock': false,
},
};