-
Notifications
You must be signed in to change notification settings - Fork 70
/
.eslintrc.js
72 lines (62 loc) · 1.64 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: MIT
*/
const path = require('path');
module.exports = {
env: {
// Available environments: https://eslint.org/docs/user-guide/configuring#specifying-environments
node: true,
},
extends: ['plugin:@liferay/general'],
ignorePatterns: [
// Project-specific
'/maintenance/projects/js-toolkit/qa',
'/maintenance/projects/js-toolkit/**/generators',
'/maintenance/projects/js-toolkit/**/lib',
'/maintenance/projects/js-toolkit/**/__fixtures__',
'/maintenance/projects/senna/build',
'/maintenance/projects/amd-loader/build',
'/maintenance/projects/amd-loader/src/demo/modules',
'/projects/js-themes-toolkit/packages/liferay-theme-tasks/lib/r2',
'/projects/js-themes-toolkit/qa',
'/projects/js-toolkit/packages/js-api/**/*.d.ts',
'/projects/js-toolkit/packages/js-api/**/*.js',
'/projects/js-toolkit/qa',
'/projects/js-toolkit/**/generators',
'/projects/js-toolkit/**/lib',
'/projects/js-toolkit/**/__tests__',
'/projects/prettier-plugin/dist',
'/projects/stylelint-plugin/dist',
// Templates
'/copyright.js',
'/maintenance/projects/**/copyright.js',
'/projects/**/copyright.js',
'/target-platforms/copyright.js',
// Third-party code
'/third-party/projects',
'node_modules',
],
overrides: [
{
env: {
jest: true,
},
files: [
'**/__tests__/**/*.js',
'**/test/**/*.js',
'**/tests/**/*.js',
],
},
],
plugins: ['@liferay'],
rules: {
'@liferay/import-extensions': 'off',
'notice/notice': [
'error',
{
templateFile: path.join(__dirname, 'copyright.js'),
},
],
},
};