Skip to content

Commit

Permalink
chore(Linting): Swapped over to using patterning linting config
Browse files Browse the repository at this point in the history
  • Loading branch information
HHogg committed May 29, 2018
1 parent 381984a commit a501f5c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["@brandwatch/eslint-config-axiom"]
"extends": ["eslint-config-patterning"]
}


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"remarkable": "^1.7.1"
},
"devDependencies": {
"@brandwatch/eslint-config-axiom": "^0.0.3",
"babel-core": "^6.14.0",
"babel-eslint": "^8.0.1",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"eslint": "^4.5.0",
"eslint-config-patterning": "^1.0.0",
"eslint-plugin-react": "^7.3.0",
"jest": "^20.0.4",
"react-test-renderer": "^16.2.0",
Expand Down
28 changes: 14 additions & 14 deletions src/defaultRemarkableProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ export default {
href: true,
id: (id, type, token) => {
switch (token.type) {
case 'footnote_anchor':
return {
key: 'href',
value: `fn${id}:${token.subId || 0}`,
};
case 'footnote_open':
return { value: `#fn${id}` };
case 'footnote_ref':
return type === 'a' ? ({
key: 'href',
value: `#fn${id}`,
}) : ({
value: `fn${id}:${token.subId || 0}`,
});
case 'footnote_anchor':
return {
key: 'href',
value: `fn${id}:${token.subId || 0}`,
};
case 'footnote_open':
return { value: `#fn${id}` };
case 'footnote_ref':
return type === 'a' ? ({
key: 'href',
value: `#fn${id}`,
}) : ({
value: `fn${id}:${token.subId || 0}`,
});
}
},
level: false,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@
lodash "^4.2.0"
to-fast-properties "^2.0.0"

"@brandwatch/eslint-config-axiom@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@brandwatch/eslint-config-axiom/-/eslint-config-axiom-0.0.3.tgz#4a3504cb2c3dbfd59410a46f7fd2f846c0d1dd8d"

"@semantic-release/commit-analyzer@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-2.0.0.tgz#924d1e2c30167c6a472bed9f66ee8f8e077489b2"
Expand Down Expand Up @@ -1480,6 +1476,10 @@ escodegen@^1.6.1:
optionalDependencies:
source-map "~0.2.0"

eslint-config-patterning@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-patterning/-/eslint-config-patterning-1.0.0.tgz#7fd1e5790f7601fcbeac13e6b56ada7d8840f87b"

eslint-plugin-react@^7.3.0:
version "7.7.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.7.0.tgz#f606c719dbd8a1a2b3d25c16299813878cca0160"
Expand Down

0 comments on commit a501f5c

Please sign in to comment.