Skip to content

Commit

Permalink
chore: update to new eslint-config (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor authored Mar 23, 2020
1 parent 43ffba3 commit 4e09b3b
Show file tree
Hide file tree
Showing 10 changed files with 297 additions and 67 deletions.
18 changes: 14 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"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"
],
"rules": {
// Next.js <Link> component doesn't play nice with anchor validation
"jsx-a11y/anchor-is-valid": 0
}
}
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

1 comment on commit 4e09b3b

@vercel
Copy link

@vercel vercel bot commented on 4e09b3b Mar 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.