Skip to content

Commit

Permalink
Chore: enable eslint-plugin/no-deprecated-context-methods (#9279)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark authored and platinumazure committed Sep 10, 2017
1 parent 981f933 commit 2b1eba2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yml
Expand Up @@ -9,7 +9,7 @@ extends:
- "plugin:eslint-plugin/recommended"
rules:
eslint-plugin/consistent-output: "error"
eslint-plugin/no-identical-tests: "error"
eslint-plugin/no-deprecated-context-methods: "error"
eslint-plugin/prefer-output-null: "error"
eslint-plugin/prefer-placeholders: "error"
eslint-plugin/report-message-format: ["error", '[^a-z].*\.$']
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/indent-legacy.js
Expand Up @@ -1040,7 +1040,7 @@ module.exports = {

const checkNodes = [node.property];

const dot = context.getTokenBefore(node.property);
const dot = sourceCode.getTokenBefore(node.property);

if (dot.type === "Punctuator" && dot.value === ".") {
checkNodes.push(dot);
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-tabs.js
Expand Up @@ -27,7 +27,7 @@ module.exports = {
create(context) {
return {
Program(node) {
context.getSourceLines().forEach((line, index) => {
context.getSourceCode().getLines().forEach((line, index) => {
const match = regex.exec(line);

if (match) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -85,7 +85,7 @@
"coveralls": "^2.13.1",
"dateformat": "^2.0.0",
"ejs": "^2.5.6",
"eslint-plugin-eslint-plugin": "^1.0.0",
"eslint-plugin-eslint-plugin": "^1.2.0",
"eslint-plugin-node": "^5.1.0",
"eslint-release": "^0.10.1",
"eslump": "1.6.0",
Expand Down

0 comments on commit 2b1eba2

Please sign in to comment.