Skip to content

Commit 8898a3b

Browse files
authored
Merge pull request #19 from bleto/update-dependencies
linter fix and dependencies
2 parents 55e7ea0 + 482b78a commit 8898a3b

24 files changed

+399
-11544
lines changed

.babelrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"comment": true,
3-
"env": {
4-
"test": {
5-
"presets": ["@babel/env"],
6-
"plugins": [
7-
"dynamic-import-node",
8-
"@babel/transform-runtime"
9-
]
10-
}
11-
}
2+
"plugins": ["@babel/plugin-syntax-dynamic-import"]
123
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ package.json
22
node_modules/
33
build/
44
dist/
5+
docs/
56
.history/
67
.vscode/

.eslintrc.js

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,63 @@
11
/*
2-
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
2+
* Copyright © Ergonode Sp. z o.o. All rights reserved.
33
* See LICENSE for license details.
44
*/
5+
56
module.exports = {
6-
root: true,
77
env: {
8-
browser: true,
98
es6: true,
109
node: true,
11-
jest: true,
1210
},
1311
parser: 'babel-eslint',
14-
extends: [
15-
'airbnb-base',
16-
'plugin:jest/recommended',
17-
],
18-
plugins: [
19-
'jest',
20-
'notice',
21-
],
12+
parserOptions: {
13+
sourceType: 'module',
14+
allowImportExportEverywhere: false,
15+
},
16+
plugins: ['notice', 'prettier'],
17+
extends: ['airbnb', 'prettier'],
2218
rules: {
23-
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
24-
'import/no-mutable-exports': 'error',
25-
'import/order': 'error',
26-
'import/first': 'error',
19+
'prettier/prettier': [
20+
'error',
21+
{
22+
singleQuote: true,
23+
tabWidth: 4,
24+
printWidth: 80,
25+
semi: true,
26+
trailingComma: 'all',
27+
},
28+
{
29+
usePrettierrc: false,
30+
},
31+
],
2732
'notice/notice': [
28-
'error', {
33+
'error',
34+
{
2935
templateFile: './config/.copyright',
3036
messages: {
31-
whenFailedToMatch: "Couldn't find 'License Header', are you sure you added it?",
37+
whenFailedToMatch:
38+
"Couldn't find 'License Header', are you sure you added it?",
3239
},
3340
},
3441
],
42+
indent: ['error', 4],
43+
'no-underscore-dangle': 'off',
44+
'no-unused-vars': [
45+
'error',
46+
{
47+
argsIgnorePattern: 'commit',
48+
},
49+
],
3550
'import/extensions': 'off',
36-
'no-console': 'off',
37-
'no-alert': 'off',
38-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
51+
'import/named': 'off',
52+
'import/no-named-as-default': 'off',
53+
'import/no-named-as-default-member': 'off',
54+
'import/no-extraneous-dependencies': 'off',
3955
'import/no-unresolved': ['off'],
4056
'import/prefer-default-export': ['off'],
41-
indent: ['error', 4],
42-
'no-param-reassign': ['error', {
43-
props: true,
44-
ignorePropertyModificationsFor: [
45-
'state',
46-
],
47-
}],
48-
'class-methods-use-this': ['off'],
49-
'global-require': ['off'],
57+
'import/order': 'error',
58+
'import/no-mutable-exports': 'error',
59+
'import/first': 'error',
60+
'import/no-duplicates': 'error',
5061
'import/no-dynamic-require': ['off'],
51-
'no-underscore-dangle': 'off',
52-
'no-unused-vars': ['error', { argsIgnorePattern: 'commit' }],
53-
'max-len': ['error', {
54-
code: 100,
55-
ignoreTrailingComments: true,
56-
ignoreComments: true,
57-
ignoreUrls: true,
58-
ignoreStrings: true,
59-
ignoreTemplateLiterals: true,
60-
}],
61-
'jest/no-commented-out-tests': 'off',
62-
'jest/expect-expect': 'off',
63-
'jest/no-mocks-import': 'off',
6462
},
6563
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ npm-debug.log
4141
yarn-error.log
4242
**/npm-debug.log
4343
.env
44+
package-lock.json
4445

4546
# configurations
4647
# exclude everything

config/.copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
2-
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
2+
* Copyright © Ergonode Sp. z o.o. All rights reserved.
33
* See LICENSE for license details.
44
*/

docs/nuxt.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*
2-
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
2+
* Copyright © Ergonode Sp. z o.o. All rights reserved.
33
* See LICENSE for license details.
44
*/
5+
56
import theme from '@nuxt/content-theme-docs';
67

78
export default theme({

jest.config.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)