Skip to content

Commit

Permalink
Merge pull request #19 from bleto/update-dependencies
Browse files Browse the repository at this point in the history
linter fix and dependencies
  • Loading branch information
bleto authored Apr 30, 2021
2 parents 55e7ea0 + 482b78a commit 8898a3b
Show file tree
Hide file tree
Showing 24 changed files with 399 additions and 11,544 deletions.
11 changes: 1 addition & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"comment": true,
"env": {
"test": {
"presets": ["@babel/env"],
"plugins": [
"dynamic-import-node",
"@babel/transform-runtime"
]
}
}
"plugins": ["@babel/plugin-syntax-dynamic-import"]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package.json
node_modules/
build/
dist/
docs/
.history/
.vscode/
84 changes: 41 additions & 43 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,65 +1,63 @@
/*
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
* Copyright © Ergonode Sp. z o.o. All rights reserved.
* See LICENSE for license details.
*/

module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
parser: 'babel-eslint',
extends: [
'airbnb-base',
'plugin:jest/recommended',
],
plugins: [
'jest',
'notice',
],
parserOptions: {
sourceType: 'module',
allowImportExportEverywhere: false,
},
plugins: ['notice', 'prettier'],
extends: ['airbnb', 'prettier'],
rules: {
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'import/no-mutable-exports': 'error',
'import/order': 'error',
'import/first': 'error',
'prettier/prettier': [
'error',
{
singleQuote: true,
tabWidth: 4,
printWidth: 80,
semi: true,
trailingComma: 'all',
},
{
usePrettierrc: false,
},
],
'notice/notice': [
'error', {
'error',
{
templateFile: './config/.copyright',
messages: {
whenFailedToMatch: "Couldn't find 'License Header', are you sure you added it?",
whenFailedToMatch:
"Couldn't find 'License Header', are you sure you added it?",
},
},
],
indent: ['error', 4],
'no-underscore-dangle': 'off',
'no-unused-vars': [
'error',
{
argsIgnorePattern: 'commit',
},
],
'import/extensions': 'off',
'no-console': 'off',
'no-alert': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'import/named': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': ['off'],
'import/prefer-default-export': ['off'],
indent: ['error', 4],
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state',
],
}],
'class-methods-use-this': ['off'],
'global-require': ['off'],
'import/order': 'error',
'import/no-mutable-exports': 'error',
'import/first': 'error',
'import/no-duplicates': 'error',
'import/no-dynamic-require': ['off'],
'no-underscore-dangle': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: 'commit' }],
'max-len': ['error', {
code: 100,
ignoreTrailingComments: true,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
'jest/no-commented-out-tests': 'off',
'jest/expect-expect': 'off',
'jest/no-mocks-import': 'off',
},
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ npm-debug.log
yarn-error.log
**/npm-debug.log
.env
package-lock.json

# configurations
# exclude everything
Expand Down
2 changes: 1 addition & 1 deletion config/.copyright
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
* Copyright © Ergonode Sp. z o.o. All rights reserved.
* See LICENSE for license details.
*/
3 changes: 2 additions & 1 deletion docs/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
* Copyright © Ergonode Sp. z o.o. All rights reserved.
* See LICENSE for license details.
*/

import theme from '@nuxt/content-theme-docs';

export default theme({
Expand Down
33 changes: 0 additions & 33 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 8898a3b

Please sign in to comment.