header-footer-elementor
Last commit date
admin
1 year ago
assets
4 years ago
inc
1 year ago
languages
1 year ago
themes
1 year ago
.eslintrc.js
4 years ago
header-footer-elementor.php
1 year ago
readme.txt
1 year ago
wpml-config.xml
2 years ago
.eslintrc.js
51 lines
| 1 | /** |
| 2 | * Internal dependencies |
| 3 | */ |
| 4 | |
| 5 | module.exports = { |
| 6 | root: true, |
| 7 | extends: [ |
| 8 | 'plugin:@wordpress/eslint-plugin/recommended-with-formatting', |
| 9 | 'plugin:import/recommended', |
| 10 | 'plugin:eslint-comments/recommended', |
| 11 | ], |
| 12 | env: { |
| 13 | browser: true, |
| 14 | }, |
| 15 | parserOptions: { |
| 16 | requireConfigFile: false, |
| 17 | babelOptions: { |
| 18 | presets: [ require.resolve( '@wordpress/babel-preset-default' ) ], |
| 19 | }, |
| 20 | }, |
| 21 | overrides: [ |
| 22 | { |
| 23 | files: [ |
| 24 | 'tests/e2e/**/*.js', |
| 25 | ], |
| 26 | extends: [ |
| 27 | 'plugin:@wordpress/eslint-plugin/test-e2e', |
| 28 | 'plugin:jest/all', |
| 29 | ], |
| 30 | settings: { |
| 31 | jest: { |
| 32 | version: 26, |
| 33 | }, |
| 34 | }, |
| 35 | rules: { |
| 36 | 'jest/lowercase-name': [ |
| 37 | 'error', |
| 38 | { |
| 39 | ignore: [ |
| 40 | 'describe', |
| 41 | ], |
| 42 | }, |
| 43 | ], |
| 44 | 'jest/no-hooks': 'off', |
| 45 | 'jest/prefer-expect-assertions': 'off', |
| 46 | 'jest/prefer-inline-snapshots': 'off', |
| 47 | }, |
| 48 | }, |
| 49 | ], |
| 50 | }; |
| 51 |