File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed
Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 1+ const config = require ( "@w3f/gatsby-theme-w3f/.eslintrc" )
2+ module . exports = config
Original file line number Diff line number Diff line change 1- import CMS from ' netlify-cms-app' ;
1+ import CMS from " netlify-cms-app" ;
22
3- import { LinkCTA } from './editor-components' ;
4- import options from './options' ;
3+ import { LinkCTA } from "@w3f/gatsby-theme-w3f/src/cms/editor-components" ;
54
6- const netlifyCmsGitLocal = process . env . GATSBY_NETLIFY_CMS_GIT_LOCAL === 'true' ;
5+ import options from "./options" ;
6+
7+ const netlifyCmsGitLocal = process . env . GATSBY_NETLIFY_CMS_GIT_LOCAL === "true" ;
78
89if ( netlifyCmsGitLocal ) {
910 options . config . local_backend = true ;
1011 options . config . backend = {
11- name : ' git-gateway' ,
12+ name : " git-gateway" ,
1213 } ;
1314}
1415
Original file line number Diff line number Diff line change 1- import collections from './collections/index' ;
1+ /* theme collections */
2+ import strings from '@w3f/gatsby-theme-w3f/src/cms/collections/strings' ;
23
3- const { strings } = collections
4+ const collections = [ strings ]
45
56const cmsOptions = {
67 config : {
7- collections : [ strings ] ,
8+ collections : collections ,
89 display_url : window . location . origin ,
910 publish_mode : 'editorial_workflow' ,
1011
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ module.exports = {
2929 sourceType : 'module' ,
3030 } ,
3131 rules : {
32- 'simple-import-sort/imports' : 'error ' ,
32+ 'simple-import-sort/imports' : 'off ' ,
3333 // Disable prop-types
3434 'react/prop-types' : 'off' ,
3535 // Enable prettier rules
36- 'prettier/prettier' : 'error ' ,
36+ 'prettier/prettier' : 'off ' ,
3737 } ,
3838} ;
You can’t perform that action at this time.
0 commit comments