Skip to content

Commit

Permalink
chore: update to new eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed Mar 19, 2020
1 parent 5f39f0b commit 658b045
Show file tree
Hide file tree
Showing 10 changed files with 292 additions and 66 deletions.
12 changes: 9 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"root": true,
"env": {
"browser": true,
"node": true
},
"extends": [
"@moxy/eslint-config-isomorphic",
"@moxy/eslint-config-jest",
"@moxy/eslint-config-react"
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-babel",
"@moxy/eslint-config-react",
"@moxy/eslint-config-react-web-a11y",
"@moxy/eslint-config-jest"
]
}
2 changes: 2 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = (api) => {
api.cache(true);

Expand Down
27 changes: 27 additions & 0 deletions docusaurus/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"root": true,
"overrides": [
{
"files": "./**/*.js",
"excludedFiles": "./sidebars.js",
"env": {
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-babel",
"@moxy/eslint-config-react",
"@moxy/eslint-config-jest"
]
},
{
"files": "./sidebars.js",
"env": {
"node": true
},
"extends": [
"@moxy/eslint-config-base/cjs"
]
}
]
}
2 changes: 2 additions & 0 deletions docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = {
title: 'Next.js with MOXY',
tagline: 'MOXY\'s boilerplate to create Next.js based applications',
Expand Down
2 changes: 2 additions & 0 deletions docusaurus/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = {
docs: [
{
Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const { compose, baseConfig, withWeb, withRTL } = require('@moxy/jest-config');

module.exports = compose([baseConfig, withWeb, withRTL]);
2 changes: 2 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

require('dotenv').config();

const { withRasterImages, withPlayback, withSVG, withFonts, with3D } = require('@moxy/next-common-files');
Expand Down
Loading

0 comments on commit 658b045

Please sign in to comment.