UNPKG

1.97 kBJavaScriptView Raw
1/*
2 * Copyright 2018 Adobe. All rights reserved.
3 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License. You may obtain a copy
5 * of the License at http://www.apache.org/licenses/LICENSE-2.0
6 *
7 * Unless required by applicable law or agreed to in writing, software distributed under
8 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9 * OF ANY KIND, either express or implied. See the License for the specific language
10 * governing permissions and limitations under the License.
11 */
12
13module.exports = {
14 'env': {
15 'node': true,
16 'es6': true
17 },
18 // this is the root project for all sub modules. stop searching for any
19 // eslintrc files in parent directories.
20 'root': true,
21 'parserOptions': {
22 'sourceType': 'script',
23 // async/await support
24 'ecmaVersion': 8
25 },
26 'plugins': [
27 'header',
28 ],
29 'extends': 'airbnb',
30 'rules': {
31 'strict': 0,
32
33 // allow dangling underscores for 'fields'
34 'no-underscore-dangle': ['error', {'allowAfterThis': true}],
35
36 // enforce license header (todo: improve plugin to support patterns for multi-lines)
37 'header/header': [2, 'block', ['',
38 ' * Copyright 2018 Adobe. All rights reserved.',
39 ' * This file is licensed to you under the Apache License, Version 2.0 (the "License");',
40 ' * you may not use this file except in compliance with the License. You may obtain a copy',
41 ' * of the License at http://www.apache.org/licenses/LICENSE-2.0',
42 ' *',
43 ' * Unless required by applicable law or agreed to in writing, software distributed under',
44 ' * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS',
45 ' * OF ANY KIND, either express or implied. See the License for the specific language',
46 ' * governing permissions and limitations under the License.',
47 ' ',
48 ]]
49 }
50};